const express = require("express");
const bookRouter = require("./router/bookRouter.js");
const cors = require("cors");

const app = express();
app.use(cors());

app.use(express.json());
app.use(express.urlencoded());

app.use("/api", bookRouter);

app.listen(3000, () => {
  console.log("3000 running");
});
